<div class="product_detail">

  <div class="photo_box">
    <table cellpadding="0" cellspacing="0">
      <tr>
        <td>
          <% if product_detail.image_url %>
            <a href="<%="/products/#{product_detail.uuid}"%>">
              <%= image_tag url_for_file_column(product_detail, "image_url","medium"),:class=>'product_img' %>
            </a>
          <%end%>
        </td>
      </tr>
    </table>
  </div>
  <div style="text-align:center;">
    <a href="<%="/products/#{product_detail.uuid}"%>">
      <span class="product_name">
        <%=product_detail.brand.name %>
        <%=truncate(h(product_detail.name),24,"") %>
      </span>
    </a>
    <span class="product_size">
      <%=h product_detail.size %> <%=h product_detail.unit %>
    </span>
  </div>
  <div>
    <% if product_detail.official_price %>
      <span class="official_price">原价:<%=product_detail.official_price%>&yen;</span>
    <%end%>
    <span class="yen"><%=product_detail.retail_price %></span>

  </div>

</div>
